package com.itheima.factory.config_factory;

/**
 * @author zzw
 * @date 2025/9/21
 * @description 工厂模式+配置文件
 */
public class Client {
    public static void main(String[] args) {
        Coffee coffee1 = CoffeeFactory.createCoffee("american");
        System.out.println(coffee1.getName());

        System.out.println("======");

        Coffee coffee2 = CoffeeFactory.createCoffee("latte");
        System.out.println(coffee2.getName());
    }
}
